package com.shujia.wyh.day08.homework.test2;

public abstract class Drink {
    //容量
    private int volume;
    //名称
    private String name;

    public Drink() {
    }

    public Drink(int volume, String name) {
        this.volume = volume;
        this.name = name;
    }

    public int getVolume() {
        return volume;
    }

    public void setVolume(int volume) {
        this.volume = volume;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    //展示的抽象方法
    public abstract void show();
}
